package com.lzy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lzy.common.QueryPageParam;
import com.lzy.dto.UserDto;
import com.lzy.entity.Result;
import com.lzy.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author author
 * @since 2025-05-06
 */
public interface IUserService extends IService<User> {

    Result login(UserDto userDto);

    Result register(UserDto userDto);

    Result logout(Integer id);

    Result createUser(UserDto userDto);

    Result updateUser(UserDto userDto);

    Result deleteUser(Integer id);

    IPage<User> getPage(Page<User> page, HashMap<String, Object> param);
}
